package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JiaoshiMapper;
import com.ruoyi.system.domain.Jiaoshi;
import com.ruoyi.system.service.IJiaoshiService;

/**
 * 教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-12
 */
@Service
public class JiaoshiServiceImpl implements IJiaoshiService 
{
    @Autowired
    private JiaoshiMapper jiaoshiMapper;

    /**
     * 查询教师
     * 
     * @param jiaoshiId 教师主键
     * @return 教师
     */
    @Override
    public Jiaoshi selectJiaoshiByJiaoshiId(Long jiaoshiId)
    {
        return jiaoshiMapper.selectJiaoshiByJiaoshiId(jiaoshiId);
    }

    /**
     * 查询教师列表
     * 
     * @param jiaoshi 教师
     * @return 教师
     */
    @Override
    public List<Jiaoshi> selectJiaoshiList(Jiaoshi jiaoshi)
    {
        return jiaoshiMapper.selectJiaoshiList(jiaoshi);
    }

    /**
     * 新增教师
     * 
     * @param jiaoshi 教师
     * @return 结果
     */
    @Override
    public int insertJiaoshi(Jiaoshi jiaoshi)
    {
        return jiaoshiMapper.insertJiaoshi(jiaoshi);
    }

    /**
     * 修改教师
     * 
     * @param jiaoshi 教师
     * @return 结果
     */
    @Override
    public int updateJiaoshi(Jiaoshi jiaoshi)
    {
        return jiaoshiMapper.updateJiaoshi(jiaoshi);
    }

    /**
     * 批量删除教师
     * 
     * @param jiaoshiIds 需要删除的教师主键
     * @return 结果
     */
    @Override
    public int deleteJiaoshiByJiaoshiIds(Long[] jiaoshiIds)
    {
        return jiaoshiMapper.deleteJiaoshiByJiaoshiIds(jiaoshiIds);
    }

    /**
     * 删除教师信息
     * 
     * @param jiaoshiId 教师主键
     * @return 结果
     */
    @Override
    public int deleteJiaoshiByJiaoshiId(Long jiaoshiId)
    {
        return jiaoshiMapper.deleteJiaoshiByJiaoshiId(jiaoshiId);
    }
}
